package com.lzy.crm.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.lzy.crm.base.mybatis.BaseMapper;
import com.lzy.crm.base.page.PageQuery;
import com.lzy.crm.dao.criteria.TradeFlowCriteria;
import com.lzy.crm.domain.TradeFlow;

public interface TradeFlowMapper extends BaseMapper<TradeFlow, TradeFlowCriteria>{

	

	/**
	 * 查询流水管理
	 * @param gameUserId
	 * @param phone
	 * @param email
	 * @return
	 */
	public List<TradeFlow> getTradeFlowList(@Param("gameUserId")String gameUserId,@Param("status")String status,@Param("pageQuery")PageQuery pageQuery );
	
	
	/**
	 * 查询用户红包总金额
	 * @param userId
	 * @param gameId
	 * @return
	 */
	public Double getTradeFlowTotal(@Param("userId")Integer userId,@Param("gameId") String gameId);
	
}
